-
Notifications
You must be signed in to change notification settings - Fork 338
DAOS-17938 pool: Add degraded to query output #17371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Ticket title is ' |
cfab5bf to
2f86dcb
Compare
|
Test stage NLT on EL 8.8 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-17371/2/testReport/ |
|
Test stage Functional Hardware Medium Verbs Provider MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos/job/PR-17371/2/display/redirect |
|
Test stage Functional Hardware Large MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17371/2/execution/node/1350/log |
Add the following to pool query output (shown as dmg pool query output): - Data redundancy: degraded When data redundancy is intact, "normal" is shown instead of "degraded". Features: control pool Signed-off-by: Li Wei <[email protected]>
2f86dcb to
cf277d5
Compare
|
Test stage Functional Hardware Medium MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17371/2/execution/node/1335/log |
|
Requesting reviews a bit early, since I'm not that familiar with the areas being changed. |
|
Test stage NLT on EL 8.8 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-17371/3/testReport/ |
| /** For daos_rebuild_status.rs_flags */ | ||
| enum daos_rebuild_status_flag { | ||
| /** Data redundancy degraded (the pool has one or more DOWN targets) */ | ||
| DAOS_RSF_DEGRADED = (1 << 0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the point of shifting by zero bits?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tanabarr, just a style. :) See line 156 of this header, for example:
DPI_SPACE = 1ULL << 0,
| else | ||
| rebuild->state = MGMT__POOL_REBUILD_STATUS__STATE__BUSY; | ||
|
|
||
| rebuild->degraded = !!(info->rs_flags & DAOS_RSF_DEGRADED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the point of the double negation here? is it equivalent to ... != 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tanabarr, it's an idiom (or pattern, at least) for converting a nonzero number to 1, usually used on flags. For example---I've seen this a couple of times in my career---say, the flags are uint64_t, and the result of the & is 0x100000000, if assigned to a uint32_t, the value overflows and becomes 0!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And yes, it's the same as != 0.
mchaarawi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the C & API changes look good to me.
not sure about all the control changes.
daltonbohning
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ftest LGTM. The rs_padding16 seemed unused anyway
|
Mohamad, Dalton, thank you for the quick reviews. I'll wait for one additional reviewer. |
|
Test stage Functional Hardware Medium MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17371/3/execution/node/1283/log |
|
Two simple regressions (expected pool query results of two tests need updating) need to be fixed:
|
Signed-off-by: Li Wei <[email protected]>
Features: control pool
eb750f9
Features: control pool Signed-off-by: Li Wei <[email protected]>
f0c7241 to
b5f505d
Compare
|
Test stage Functional Hardware Large MD on SSD completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-17371/6/testReport/ |
|
Test stage Functional Hardware Medium MD on SSD completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-17371/6/testReport/ |
Features: control pool Signed-off-by: Li Wei <[email protected]>
Features: control pool
|
One rebuild case in pool/list_verbose needs a further update. The container/boundary space errors do not seem to be related to this PR; I've filed DAOS-18477 for them. |
|
Test stage NLT on EL 8.8 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-17371/7/testReport/ |
Add the following to pool query output (shown as dmg pool query output):
When data redundancy is intact, "normal" is shown instead of "degraded".
Features: control pool
Steps for the author:
After all prior steps are complete: